<?php /* @var $this Controller */ ?>
<?php
	$controller = $this->getId();
	$action = $this->getAction()->getId();
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />
	<!-- <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /> -->
	<script>var baseUrl = "<?php echo Yii::app()->request->baseUrl; ?>";</script>
	<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" title="style" rel="stylesheet" type="text/css" />
	<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/custom_bootstrap.css" title="style" rel="stylesheet" type="text/css" />
	<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/custom_style.css" title="style" rel="stylesheet" type="text/css" />
	<link id="clink" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style-green.css" title="style" rel="stylesheet" type="text/css" media="screen"/>
	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/jquery.masonry.min.js" type="text/javascript"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/jquery.easing.1.3.js" type="text/javascript"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/MetroJs.js" type="text/javascript"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/jquery.fancybox-1.3.4.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/jquery.flexslider-min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/jquery.jplayer.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/jquery.backgroundSize.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/hoverintent.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/organictabs.jquery.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/common.js" type="text/javascript" charset="utf-8"></script>
	<!--[if lt IE 9]>
	  <style type="text/css">
	  @import url("<?php echo Yii::app()->request->baseUrl; ?>/css/style-ie8.css");
	  </style>
	  <script src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/css3-mediaqueries.js" type="text/javascript" charset="utf-8"></script>
	  <script>
	    document.createElement('header');
	    document.createElement('nav');
	    document.createElement('section');
	    document.createElement('article');
	    document.createElement('aside');
	    document.createElement('footer');
	    document.createElement('hgroup');
	    </script>
	<![endif]-->
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/javascript.js" type="text/javascript"></script>
	<script src="<?php echo Yii::app()->request->baseUrl; ?>/scripts/mediaplayer.js" type="text/javascript"></script>
</head>

<body>
<div id="fb-root"></div>

<div id="bodypat">
<section id="container">
<!-- Color Changer -->
  <div id="colorchanger">
	  <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.html?theme=blue" class="cblue cbox" title="Blue Theme"><span class="blue">Blue</span></a>
	  <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.html?theme=red" class="cred cbox" title="Red Theme"><span class="red">Red</span></a>
	  <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.html?theme=green" class="cgreen cbox" title="Green Theme"><span class="green">Green</span></a>
	  <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.html?theme=magenta" class="cmagenta cbox" title="Magenta Theme"><span class="magenta">Magenta</span></a>
	  <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.html?theme=purple" class="cpurple cbox" title="Purple Theme"><span class="purple">Purple</span></a>
	  <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.html?theme=teal" class="cteal cbox" title="Teal Theme"><span class="teal">Teal</span></a>
	  <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.html?theme=lime" class="clime cbox" title="Lime Theme"><span class="lime">Lime</span></a>
	  <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.html?theme=brown" class="cbrown cbox" title="Brown Theme"><span class="brown">Brown</span></a>
	  <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.html?theme=pink" class="cpink cbox" title="Pink Theme"><span class="pink">Pink</span></a>
	  <a href="<?php echo Yii::app()->request->baseUrl; ?>/index.html?theme=mango" class="cmango cbox" title="Mango Theme"><span class="mango">Mango</span></a>
	  <h4>Theme Color Selector</h4>
  </div>

<?php
if($controller == 'template'){
	// This header file only used for view template
	$this->renderPartial('//layouts/header_template');
}else{
	// Edit this file to fit your requirement
	$this->renderPartial('//layouts/header', array('controller' => $controller, 'action' => $action));
}
?>

<?php echo $content; ?>

<!-- BEGIN FOOTER -->
<footer class="clearfix">

<!-- <div id="footer-social">
<a href="#"><span class="yahoo-mini"></span></a>
<a href="#"><span class="twitter-mini"></span></a>
<a href="#"><span class="facebook-mini"></span></a>
<a href="#"><span class="linkedin-mini"></span></a>
<a href="#"><span class="pinterest-mini"></span></a>
<a href="#"><span class="dribbble-mini"></span></a>
</div> -->

<small>Copyright &#169; <?php echo date('Y'); ?> <?php echo Yii::app()->name; ?> - All Rights Reserved.</small>
</footer>
<!-- END FOOTER -->

</section><!-- end #container -->
</div>
</body>
</html>
